<?php

namespace Admin;

/**
 * 表单
 */
class AdminLoginFormModel extends \Forms\FormBase
{
    /**
     * 设置所有的字段
     */
    protected $_fields = array(
        'admin_email' => array(
            'label' => '邮箱',
            'name' => 'admin_email',
            'require' => true,
            'message' => "请输入邮箱",
            'validate' => array(
                array("type" => "string", "min" => "2", "max" => "100", "msg" => "email is incorrect")
            ),
        ),
        'admin_password' => array(
            'label' => '密码',
            'name' => 'admin_password',
            'require' => true,
            'message' => "请输入密码",
            'validate' => array(
                array("type" => "string", "min" => "6", "max" => "16", "msg" => "password is incorrect")
            ),
        ),
    );
}
